Cmake_minimum_required(VERSION 3.5)

project(XBOTCON CXX)

set(CMAKE_CXX_STANDARD 17)


add_executable(${PROJECT_NAME}
    "src/main.cpp"
    "src/ArmourPlate.cpp"
    "src/BaseArmourPlate.cpp"
    "src/SerialPort.cpp"
    "src/AttitudeSolution.cpp"
)

find_package(OpenCV 4 REQUIRED)

set(OpenCV_DIR "/usr/include/opencv4")

target_include_directories(${PROJECT_NAME}
    PRIVATE
        
        ${OpenCV_INCLUDE_DIRS}
        "include"
)

target_link_libraries(${PROJECT_NAME}
    PRIVATE
        ${OpenCV_LIBRARIES}
        -pthread
        

)
